<template>
  <div class="logo-container" :class="{ 'small': size === 'small', 'medium': size === 'medium', 'large': size === 'large' }">
    <div class="logo-text">
      <span class="by-text">BY</span>
      <span class="registered">®</span>
    </div>
  </div>
</template>

<script setup>
defineProps({
  size: {
    type: String,
    default: 'medium',
    validator: (value) => ['small', 'medium', 'large'].includes(value)
  }
})
</script>

<style lang="scss" scoped>
.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  &.small {
    .logo-text {
      font-size: 16px;
      
      .registered {
        font-size: 8px;
        top: -4px;
        right: -8px;
      }
    }
  }
  
  &.medium {
    .logo-text {
      font-size: 24px;
      
      .registered {
        font-size: 10px;
        top: -6px;
        right: -10px;
      }
    }
  }
  
  &.large {
    .logo-text {
      font-size: 32px;
      
      .registered {
        font-size: 12px;
        top: -8px;
        right: -12px;
      }
    }
  }
  
  .logo-text {
    position: relative;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    color: #FF8C00; // 金色
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    .by-text {
      display: inline-block;
      letter-spacing: 1px;
    }
    
    .registered {
      position: absolute;
      font-size: 10px;
      top: -6px;
      right: -10px;
      color: #FF8C00;
      font-weight: normal;
    }
  }
}
</style> 